<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>    
<form:form enctype="multipart/form-data" 
                      action="sboardWrite.do" commandName="command">
	<fieldset>
		<legend>글쓰기</legend>
		<form:errors element="div"/>
		<ul>
			<li>
				<label for="title"><spring:message code="write.form.title"/></label>
				<form:input path="title"/><br>
				<form:errors path="title"/>
			</li>
			<li>
				<label for="type">질문종류</label>
				<form:input path="type"/><br>
				<form:errors path="type"/>
			</li>
			
			<li>
				<label for="id"><spring:message code="write.form.writer"/></label>
				<form:input path="id"/><br>
				<form:errors path="id"/>
			</li>
			<li>
				<label for="closed">공개여부</label>
				<form:input path="closed"/><br>
				<form:errors path="closed"/>
			</li>
			<li>
				<label for="ip">ip</label>
				<form:input path="ip"/><br>
				<form:errors path="ip"/>
			</li>
			<li>
				<label for="content"><spring:message code="write.form.content"/></label>
				<form:textarea path="content"/><br>
				<form:errors path="content"/>
			</li>
			<li>
				<label for="upload"><spring:message code="write.form.upload"/></label>
				<input type="file" name="upload" id="upload">
			</li>
			<li class="align-center">
				<input type="submit" value="<spring:message code="write.form.submit"/>" class="inputb2">
				<input type="button" value="<spring:message code="list.content.title"/>" class="inputb2"
				                           onclick="location.href='sboardList.do'">
			</li>
		</ul>
	</fieldset>
</form:form>